package net.ericaro.neojavagen.expressions;

/**
 * <b>MultiplicativeExpression</b> ::= <{@link net .ericaro .neojavagen .expressions .UnaryExpression UnaryExpression}> <
 * {@link net .ericaro .neojavagen .expressions .MultiplicativeExpressionRest MultiplicativeExpressionRest}>?
 * 
 * @author eric@ericaro.net
 */
public class MultiplicativeExpression extends net.ericaro.neojavagen.JavaPartComposition {
	private net.ericaro.neojavagen.expressions.MultiplicativeExpressionRest multiplicativeExpressionRest;

	private net.ericaro.neojavagen.expressions.UnaryExpression unaryExpression;

	public MultiplicativeExpression(net.ericaro.neojavagen.expressions.UnaryExpression unaryExpression) {
		this.unaryExpression = unaryExpression;
		this.multiplicativeExpressionRest = null;
	}

	public MultiplicativeExpression(net.ericaro.neojavagen.expressions.UnaryExpression unaryExpression, net.ericaro.neojavagen.expressions.MultiplicativeExpressionRest multiplicativeExpressionRest) {
		super();
		this.unaryExpression = unaryExpression;
		this.multiplicativeExpressionRest = multiplicativeExpressionRest;
	}

	public net.ericaro.neojavagen.expressions.MultiplicativeExpressionRest getMultiplicativeExpressionRest() {
		return multiplicativeExpressionRest;
	}

	public net.ericaro.neojavagen.expressions.UnaryExpression getUnaryExpression() {
		return unaryExpression;
	}

	public void setMultiplicativeExpressionRest(net.ericaro.neojavagen.expressions.MultiplicativeExpressionRest multiplicativeExpressionRest) {
		this.multiplicativeExpressionRest = multiplicativeExpressionRest;
	}

	public void setUnaryExpression(net.ericaro.neojavagen.expressions.UnaryExpression unaryExpression) {
		this.unaryExpression = unaryExpression;
	}

	@Override
	public java.lang.String toString() {
		return print(unaryExpression, multiplicativeExpressionRest);
	}
}
